package team.yidong.fenda.wx.Service;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Service;
import team.yidong.fenda.entity.Question;
import team.yidong.fenda.entity.User;

import java.util.Date;
import java.util.List;

/**
 * Created by xuanlong on 2017/10/12.
 */
@Service
public interface WxQuestionService {
    JSONArray findWxQustion(Integer id, Integer page, Integer page_size);

    JSONObject findQuestionByIdOrUuName(Integer id, String uuName, String useruuid);

    JSONArray findQuestionByClass(Integer id, Integer page, Integer page_size, String questionClass);

    JSONArray findQuestionByUser(String wxNumber);

    public String addQuestion(String wxNumber, String info, String creatDate, String imgUrl, String questionClass, Integer isOneMaster, Double timeNum, String headImg, String nickName, String isAnonymous, Double askMoney, String out_trade_no);

    Question findOne(Integer questionId);

    JSONArray findQuestionByMaster(String openId);

    JSONArray findQuestionByAnswerMaster(String openId);

    JSONArray findByNotAnswerANdQuestionClass(String openId, String questionClass, String kind, Integer page, Integer page_size);

    JSONArray findTewenQuestion(String openid);
}
